﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Webdiyer.WebControls.Mvc;

namespace Sahit.iSoilHotel.Portal.ServiceProxy.Tavern.Models.Record
{
    public class RecordListModel : RecordModel, IPagedList
    {
        public List<RecordModel> PagedRecords { get; set; }

        public List<RecordModel> LatestRecords { get; set; }

        public int CurrentPageIndex { get; set; }

        public int PageSize { get; set; }

        public int TotalItemCount { get; set; }

        public string GetRecordClassByStatus()
        {
            switch (StatusID)
            {
                case 1:
                    return "reserved";
                case 2:
                    return "checkin";
                case 3:
                    return "checkout";
                default:
                    return "empty";
            }
        }
    }
}
